<?php

namespace App\Model\Task;

use App\Model\Model;
use Hyperf\Database\Model\SoftDeletes;

/**
 * @property integer $id
 * @property string $title
 * @property integer $create_time
 * @property integer $delete_time
 * @property integer $update_time
 */
class TaskHelpCategory extends Model
{
    use SoftDeletes;

    /**
     * The table associated with the model.
     *
     * @var string
     */
    protected $table = 'task_help_category';

    protected $fillable = [
        'title',
        'create_time',
        'delete_time',
        'update_time',
    ];
    
    public function TaskHelp()
    {
        return $this->hasMany(TaskHelp::class, 'task_help_category_id', 'id');
    }
}
